
class AcideAmine:

    __id = 0

    def __init__(self, nom):
        self._codons = []
        self._nom = nom

    def setId(self, id):
        self.__id = id

    def getId(self):
        return self.__id

    def addCodon(self, codon):
        self._codons.append(codon)

    def getCodons(self):
        return self._codons

    def setCondonDefault(self, codon):
        self._codonDefault = codon

    def code(self):
        return self._codonDefault

    def __contain__(self, in_codon):
        return in_codon in self._codons

    def __iter__(self):
        for i in self._codons:
            yield i

    def __str__(self):
        return self._nom
